//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-03B
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Madison Beer','Radio City Music Hall','New York, NY','Saturday','5/18/2024','8:00 PM','5995967','Madison-Beer-5-18-2024'],['Sleep Token','Radio City Music Hall','New York, NY','Wednesday','5/22/2024','8:00 PM','6129036','Sleep-Token-5-22-2024'],['Silvestre Dangond','Radio City Music Hall','New York, NY','Friday','5/31/2024','8:00 PM','6056678','Silvestre-Dangond-5-31-2024'],['Reik','Radio City Music Hall','New York, NY','Saturday','6/1/2024','8:00 PM','6304834','Reik-6-1-2024'],['Sarah Conway and The Playful Souls Christmas Show','Stephen Talkhouse','Amagansett, NY','Thursday','6/6/2024','8:00 PM','6320879','Sarah-Conway-and-The-Playful-Souls-Christmas-Show-6-6-2024'],['Michelle Buteau','Radio City Music Hall','New York, NY','Thursday','6/6/2024','8:00 PM','6329134','Michelle-Buteau-6-6-2024'],['Tony Touch','Radio City Music Hall','New York, NY','Friday','6/7/2024','8:00 PM','6150690','Tony-Touch-6-7-2024'],['Gary Clark Jr.','Radio City Music Hall','New York, NY','Tuesday','6/11/2024','8:00 PM','6242067','Gary-Clark-Jr--6-11-2024'],['The Kid Laroi','Radio City Music Hall','New York, NY','Monday','6/17/2024','7:30 PM','6340592','The-Kid-Laroi-6-17-2024'],['Lizzy McAlpine','Radio City Music Hall','New York, NY','Tuesday','6/18/2024','8:00 PM','6278589','Lizzy-McAlpine-6-18-2024']],'"Christmas"','https://www.ticketnetwork.com');